<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page import="net.skyedu.dao.*" %>
<%@ page import="net.skyedu.bean.*" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
	pageContext.setAttribute("path", path);
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title>添加课程大纲</title>
	<link rel="stylesheet" type="text/css" href="${path }/css/main1.css"/>
	<link rel="stylesheet" type="text/css" href="${path }/css/star.css"/>
	<script type="text/javascript" src="${path }/js/jquery-1.7.1.min.js"></script>
	<script type="text/javascript" src="${path }/js/lhgdialog/lhgdialog.min.js?skin=discuz"></script>
	<script type="text/javascript" src="${path }/js/star.js"></script>
	<script type="text/javascript" src="${path }/js/s.js"></script>
</head>

<body>

<%
	String id = request.getParameter("id");
	String claNum = request.getParameter("claNum");
	DaoSupport ds = new DaoSupport();
	SysOutline sysoutline = ds.showOutline(Integer.parseInt(id),Integer.parseInt(claNum));
	
	pageContext.setAttribute("id", id);
	pageContext.setAttribute("list", sysoutline);
	pageContext.setAttribute("claNum", claNum);
%>
<input type="hidden" id="claNum" value="${claNum }"/>
<input type="hidden" id="id" value="${id }"/>
<!-- mian -->
<div class="main">
	
  <!-- 提示Start -->
<%--  <div class="fyb">--%>
<%--  		<div align="center">新增第<span id="ms">1</span>次课</div>--%>
<%--  </div>--%>
  <!-- 提示End -->
  
  <!-- 主体内容 -->
  <div class="fyb">
    <div class="tab_content">
          <div>
          	<table class="result">
          		<tr>
          			<td width="25%">上课内容</td>
                    <td width="75%"><textarea id="claContent" rows="4" cols="50" ><%=sysoutline.getClaContent() %></textarea></td>
          		</tr>
          		<tr>
          			<td>教学目的</td>
                    <td><textarea id="teaAims" rows="4" cols="50"><%=sysoutline.getTeaAims() %></textarea></td>
          		</tr>
          		<tr>
          			<td>主要知识点</td>
                    <td><textarea id="knowledge" rows="4" cols="50"><%=sysoutline.getKnowledge()%></textarea></td>
          		</tr>
          		<tr>
          			<td>难易程度</td>
                    <td>
                    <!--star start-->
						<div id="star">
							<!-- <ul>
								<li><a href="javascript:;">1</a></li>
								<li><a href="javascript:;">2</a></li>
								<li><a href="javascript:;">3</a></li>
								<li><a href="javascript:;">4</a></li>
								<li><a href="javascript:;">5</a></li>
							</ul>
							<span></span>
							<p></p>-->
							<c:if test="<%=sysoutline.getDifficulty()==1%>">
					          	<ul>
					          		<li class='on'>1</li>
					          		<li>2</li>
					          		<li>3</li>
					          		<li>4</li>
					          		<li>5</li>
								</ul>
						  </c:if>
						  <c:if test="<%=sysoutline.getDifficulty()==2%>">
					          	<ul>
					          		<li class='on'>1</li>
					          		<li class='on'>2</li>
					          		<li>3</li>
					          		<li>4</li>
					          		<li>5</li>
								</ul>
						  </c:if>
						  <c:if test="<%=sysoutline.getDifficulty()==3%>">
					          	<ul>
					          		<li class='on'>1</li>
					          		<li class='on'>2</li>
					          		<li class='on'>3</li>
					          		<li>4</li>
					          		<li>5</li>
								</ul>
						  </c:if>
						  <c:if test="<%=sysoutline.getDifficulty()==4%>">
					          	<ul>
					          		<li class='on'>1</li>
					          		<li class='on'>2</li>
					          		<li class='on'>3</li>
					          		<li class='on'>4</li>
					          		<li>5</li>
								</ul>
						  </c:if>
						  <c:if test="<%=sysoutline.getDifficulty()==5%>">
					          	<ul>
					          		<li class='on'>1</li>
					          		<li class='on'>2</li>
					          		<li class='on'>3</li>
					          		<li class='on'>4</li>
					          		<li class='on'>5</li>
								</ul>
						  </c:if>
								<span></span>
								<p></p>
						</div>
					<!--star end-->
                    </td>
          		</tr>
          		<tr>
          			<td colspan=2><div class="c_btn" onclick="updateOutline(${id});">保 存</div></td>
          			
          		</tr>
          	</table>
          </div>
    </div>
    <br/>
    <div>
      	<div align="center"><span id="ms2"></span></div>
    </div>
  </div>
  <!-- 主体内容 end -->
</div>
<!-- mian end -->
</body>
</html>
